﻿@using Model.WeiXin.DTO
@using Model.WXshopBuiness.Enum
@{
Layout = "~/Views/Shared/_ShopLayout.cshtml";
UserOrderInfo orderinfo = (UserOrderInfo)ViewBag.orderInfo;
UserInfoModel basicinfo = (UserInfoModel)ViewBag.basicInfo;
ViewBag.Title = "个人中心";
}      
    <link href="http://at.alicdn.com/t/font_6yxmrwgmg7kl0udi.css" rel="stylesheet" type="text/css" />
    <style type="text/css">
        body {
            background: #5f3b8e;
        }
        .personinfo {
            float: left;
            margin-left:0.5rem;
             margin-top: 0.5rem;
             color:white;
        }
        .personinfo p{
        font-size:1.2em;
        }
        
    </style>

 

    <!--头部-->
    <div class="zhang">
        <div class="container">
            <div class="xiao">
                <a href="#"><span class="iconfont icon-xiaoxi"><i></i></span></a>
                <a href="#"><span class="iconfont icon-iconfontshezhi"></span></a>
            </div>
            <div class="tou_x">
                <a href="~/UserCenter/BindInfo">
                    <div  style="height: 50px;width: 50px;float: left;margin-top:4px;padding-top: 10px;">
                        <img class="iconfont icon-touxiang" src="@basicinfo.HeadUrl" style="width:50px;height:50px;border-radius: 25px;" />
                    </div>
                </a>
                <div class="personinfo">
                    <p style="margin-bottom:2px;">@basicinfo.NickName</p>
                    <p style="margin-bottom:2px;">用户编码：@basicinfo.UserCode</p>
                    <p style="margin-bottom:2px;">手机号：@basicinfo.Mobile</p>
                </div>                
            </div>
        </div>
    </div>
    <div class="ding">
        <div class="one">
            <div class="container">
                <a href="~/Order/MyOrders?type=all">
                    <p class="biao">全部订单<i class="iconfont icon-jiantou"></i></p>
                </a>
                <a href="~/Shop/ShopCar">
                    <p class="biao">我的购物车<a style="font-size:1.2em;color:red">(@orderinfo.ShopCarNeedToPayCount)</a><span></span><i class="iconfont icon-jiantou"></i></p>
                </a>
            </div>
        </div>
        <ul>
            <li>
                <a href="~/Order/MyOrders?type=@((int)Enum_OrderState.WAITINGPAY)">
                    @if (orderinfo.NeedToPayCount > 0)
    {
                <span class="iconfont icon-qianbao-"><i>@orderinfo.NeedToPayCount</i></span>
}
else
{
                <span class="iconfont icon-qianbao-"> </span>
}

                    <p>待付款</p>
                </a>
            </li>
            <li>
                <a href="~/Order/MyOrders?type=@((int)Enum_OrderState.PAYED)">
                    @if (orderinfo.ShopCarPayedSuccessCount > 0)
        {
            <span class="iconfont icon-daifahuo1"><i>@orderinfo.ShopCarPayedSuccessCount</i></span>
}
else
{
            <span class="iconfont icon-daifahuo1"></span>
}
                    <p>待发货</p>
                </a>
            </li>
            <li>
                <a href="~/Order/MyOrders?type=@((int)Enum_OrderState.SHIPPING)">
                    @if (orderinfo.ShopCarShippingCount > 0)
        {
            <span class="iconfont icon-daishouhuo"><i>@orderinfo.ShopCarShippingCount</i></span>
}
else
{
            <span class="iconfont icon-daishouhuo"></span>
}

                    <p>待收货</p>
                </a>
            </li>
            <li>
                <a href="~/Order/MyOrders?type=@((int)Enum_OrderState.WAITCOMMENT)">
                    @if (orderinfo.ShopCarWaitingComment > 0)
        {
            <span class="iconfont icon-daipingjia1"><i>@orderinfo.ShopCarWaitingComment</i></span>
}
else
{
            <span class="iconfont icon-daipingjia1"></span>
}


                    <p>待评价</p>
                </a>
            </li>
            <li>
                <a href="~/Order/MyOrders?type=@((int)Enum_OrderState.FINISHED)">
                    <span class="iconfont icon-tuikuan"></span>
                    <p>已完成</p>
                </a>
            </li>
        </ul>
    </div>
    <!--列表-->
    <div class="lie_y">
        <div class="container">
            <div class="row">
                <div class="col-xs-4">
                    <a href="~/UserCenter/MyCollection">
                        <span class="iconfont icon-shoucang"></span>
                        <p class="lll">我的收藏</p>
                    </a>
                </div>
                <div class="col-xs-4">
                    <a href="~/UserCenter/MyFoot">
                        <span class="iconfont icon-zuji1" style="color:#f9a900;"></span>
                        <p class="lll">我的足迹</p>
                    </a>
                </div>
                <div class="col-xs-4">
                    @if (ViewBag.isSalesman)
                    {
                <a href="~/Sales/MySalesBrandList">
                    <span class="iconfont icon-tuijian" style="color:#bd45e5;"></span>
                    <p class="lll">推广产品</p>
                </a>
                }
                else
                {
                <a href="~/shop/recommend">
                    <span class="iconfont icon-tuijian" style="color:#bd45e5;"></span>
                    <p class="lll">推荐好友</p>
                </a>
                }

                </div>
                <div class="col-xs-4">
                    <a href="~/Address/MyAddress">
                        <span class="iconfont icon-shouhuodizhi" style="color:#72ad14;"></span>
                        <p class="lll">收货地址</p>
                    </a>
                </div>
                <div class="col-xs-4">
                    <a href="~/UserCenter/MyAccountBalance">
                        <span class="iconfont icon-iconliushuizijin" style="color:#ec3535;"></span>
                        <p class="lll">资金流水</p>
                    </a>
                </div>
                <div class="col-xs-4">
                    <a href="#">
                        <span class="iconfont icon-shimingrenzheng" style="color:#fe6e12;"></span>
                        <p class="lll">实名认证</p>
                    </a>
                </div>
                <div class="col-xs-4">
                    <a href="#">
                        <span class="iconfont icon-conpon1" style="color:#f9a900;"></span>
                        <p class="lll">代金券</p>
                    </a>
                </div>
                <div class="col-xs-4">
                    <a href="#">
                        <span class="iconfont icon-hongbao" style="color:#fa3535;"></span>
                        <p class="lll">红包</p>
                    </a>
                </div>
                <div class="col-xs-4">
                    @if (ViewBag.AdminCQ)
    {
                <a href="~/UserCenter/ClearCacheP">
                    <span class="iconfont icon-shangjia"></span>
                    <p class="lll">更新缓存</p>
                </a>
}
else
{
                <a href="#">
                    <span class="iconfont icon-shangjia"></span>
                    <p class="lll">帮助中心</p>
                </a>
}
                </div>
            </div>
        </div>
    </div>
